<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>

<body>

</body>
<script>
	function compose(list) {
		const result = list.reduce((acc,cur) => {
			let temp = []
			if(acc.length === 0){
				temp.push(...cur)
			} else {
				acc.forEach(i=>{
					cur.forEach(j=>{
						temp.push(`${i}+${j}`)
					})
				})
			}
			return temp
		},[])
		return result.join(',')
	}
	let list = [['热', '冷', '冰'], ['大', '中', '小'], ['重辣', '微辣'], ['重麻', '微麻']];
	console.log(compose(list))
</script>
</html>